#ifndef __TOOL_H__
#define __TOOL_H__

#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
using namespace std;

//在img上框出旋转矩形box
void draw_rect(RotatedRect box, Mat img);

//进行滤波
float compensation(vector<float> savedis, float dis);

//数据保护，防止因访问不存在的像素点而导致程序中断
int protectData(float &x, float &y, float &width, float &height, int rows, int cols);

#endif
